home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / System / list&dialog.c ƒ / main.c < prev   
Encoding:
C/C++ Source or Header  |  1990-05-19  |  502 b   |  38 lines  |  [TEXT/KAHL]

  1.  
  2.  
  3. #include "list&dialog.h"
  4.  
  5. /***
  6. **
  7. **    The main "do nothing"
  8. **    Bernie Wieser '90
  9. **
  10. **    Purpose
  11. **        Initialize all needed stuff for list manager and dialog manager
  12. **    
  13. ***/
  14.  
  15. main()
  16. {
  17.     
  18.     MaxApplZone();
  19.  
  20.     /* init macintosh */
  21.     FlushEvents(everyEvent,0);
  22.     InitGraf(&thePort);
  23.     InitFonts();
  24.     InitWindows();
  25.     InitMenus();
  26.     TEInit();
  27.     InitDialogs(NIL);
  28.  
  29.     /* other set ups */
  30.     InitCursor();
  31.     
  32.     /* my dialog test */
  33.     SetPort(thePort);
  34.     do_dialog(thePort);
  35.         
  36.     /* clean up and (common) exit */
  37.     ExitToShell();
  38. }